package com.zytlifeservice.domain.find;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

/**
 * 积分类
 * Created by Administrator on 2017/5/31.
 */
@Entity
public class Integral {

    public static final String TYPE_MOBILE_RECHARGE = "0";   //话费
    public static final String TYPE_MOBILE_FLOW = "1";    //流量
    public static final String TYPE_CATV = "2";  //有线电视
    public static final String TYPE_GHKD_RECHARGE = "3";  //宽带固话
    public static final String TYPE_WATER = "4";  //水费
    public static final String TYPE_ELECTRIC = "5";  //电费
    public static final String TYPE_COAL = "6";  //燃气费

    public static final int TYPE_ADD = 0;
    public static final int TYPE_MINUS = 1;

    @Id
    @GeneratedValue
    private Long gid;//积分编号

    private String gtypeId;//缴费商品类型

    private Integer integral;//奖励积分

    private Long userId;  //用户id

    private Date createDate;  //创建时间

    //----------------------------------------
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGid() {
        return gid;
    }

    public void setGid(Long gid) {
        this.gid = gid;
    }

    public String getGtypeId() {
        return gtypeId;
    }

    public void setGtypeId(String gtypeId) {
        this.gtypeId = gtypeId;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }
}
